<?php

use yii\db\Migration;
use yii\db\Schema;

/**
 * Class m190312_024954_ADD_FILED_USER
 */
class m190312_024954_ADD_FILED_USER extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {

        $this->addColumn('{{user}}', 'manage_user_id', Schema::TYPE_STRING. "(522) NULL COMMENT '可以看见的团队' AFTER company ");

    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        echo "m190312_024954_ADD_FILED_USER cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m190312_024954_ADD_FILED_USER cannot be reverted.\n";

        return false;
    }
    */
}
